#!usr/bin/env python  
#@time: 2018/01/23 
import pymysql

conn = pymysql.connect(user='root',password='qwe123',database='pydb',charset='utf8')
cursor = conn.cursor()
cursor.execute('select * from link where id = %s',('1',))
values = cursor.fetchall()

print(values)
conn.close()